package com.wbdca.crawler.entity;

import com.google.gson.stream.JsonWriter;
import lombok.Getter;

import java.io.IOException;

@Getter
public class Organization {
    private final String login;
    private final int id;
    private final String description;

    public void writeProfile(JsonWriter writer) throws IOException {
        writer.beginObject();
        writer.name("login").value(login);
        writer.name("description").value(description);
        writer.endObject();
    }

    public Organization(String login, int id, String description){
        this.login = login;
        this.id = id;
        this.description = description;
    }
}
